function Robot(id,img,health)
{

	this.id = id;
	this.img = img;
	this.health = health;
	this.width;
	this.height;
	this.atkType;
	
	this.scale = function(x,y)
	{
		//scale the object
		this.img.scaleX = x;
		this.img.scaleY = y;

		//Refresh its properties
		this.width = this.img.scaleX * this.img.image.width;
		this.height = this.img.scaleY * this.img.image.height;
	}

	this.scale(0.25,0.25);
	
	this.img.x = screenWidth/2 - this.width/2;

	if(this.id == 0)
	{
		this.img.y = 0;
	}
	else if (this.id == 1)
	{

		this.img.y = screenHeight - this.height;
		
	}

	this.grappin = function(side)
	{
		//Grappin Gauche
		if(side == 0)
		{


		}
		//Grappin droit
		else if (side == 1)
		{


		}

	}

	this.shoot = function()
	{
		//instantiateBullet(this.atkType,this.id);
		
	}

	this.defend = function(type)
	{
		//Mech
		if(type == 0)
		{


		}
		//Elec
		else if (type == 1)
		{


		}
		//Mag
		else if (type == 2)
		{


		}
	}
}